package com.weijianhuawen.wjblog.web.controller;

import com.weijianhuawen.wjblog.common.aspect.ApiOperationLog;
import com.weijianhuawen.wjblog.common.utils.Response;
import com.weijianhuawen.wjblog.web.service.BlogSettingsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version: java version 8
 * @Author: weijianhuawen
 * @description:
 * @date: 2024-10-28 23:13
 */
@RestController
@RequestMapping("/blog/settings")
@Api(tags = "博客设置模块")
public class BlogSettingsController {
    @Autowired
    private BlogSettingsService blogSettingsService;

    @GetMapping("/detail")
    @ApiOperation(value = "获取博客设置信息")
    @ApiOperationLog(description = "获取博客设置信息")
    public Response findBlogSettingsDetail() {
        return blogSettingsService.finBlogSettingsDetail();
    }
}
